import request from '@/utils/request'

export function getTree() {
  return request({
    url: '/sys/department/getTree',
    method: 'get'
  })
}

export function getCompanyTree() {
  return request({
    url: '/sys/department/getCompanyTree',
    method: 'get'
  })
}

export function get(id) {
  return request({
    url: `/sys/department/${id}`,
    method: 'get'
  })
}
